package stud.aistar.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpSession;

/**
 * Created by Administrator on 2019/10/12.
 */
@Controller
@RequestMapping("/slogin")
public class exitController {


    @RequestMapping("/exit")
    public String exit(HttpServletRequest request){
        request.getSession().invalidate();

        return "redirect:/cloginview";

    }
}
